webpackJsonp([67],{

/***/ "zaYr":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./src/store/index.js
var store = __webpack_require__("IcnI");

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/anjian/emergency/instructionRecordAdd.vue
//
//
//
//
//
//
//
//
//
//
//
//
//




/* harmony default export */ var instructionRecordAdd = ({
  data: function data() {
    return {
      id: '',
      form: {
        Time: '',
        context: '',
        file: []
      },
      uploadFile: function uploadFile(file) {
        return commonApi["a" /* commonApi */].uploadFile(file).then(function (_ref) {
          var _name = _ref._name,
              _url = _ref._url;
          return { name: _name, url: _url };
        });
      }
    };
  },

  methods: {
    submit: function submit() {
      store["a" /* BUS */].$emit(store["b" /* EVENTS */].emergencyCommandActionAdd, this.form);
      this.form = {
        Time: '',
        context: '',
        file: []
      };
      this.$router.$back();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-14959af6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/anjian/emergency/instructionRecordAdd.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{attrs:{"title":"新增指令"}},[_c('yt-cell',{attrs:{"label":"执行时间"}},[_c('yt-cell-time',{attrs:{"format":"YYYY-MM-DD hh:mm:ss"},model:{value:(_vm.form.Time),callback:function ($$v) {_vm.$set(_vm.form, "Time", $$v)},expression:"form.Time"}})],1),_vm._v(" "),_c('yt-textarea',{attrs:{"title":"执行步骤","type":"column"},model:{value:(_vm.form.context),callback:function ($$v) {_vm.$set(_vm.form, "context", $$v)},expression:"form.context"}}),_vm._v(" "),_c('yt-card',{attrs:{"title":"上传附件","tag":false}},[_c('yt-file',{attrs:{"uploadFile":_vm.uploadFile},model:{value:(_vm.form.file),callback:function ($$v) {_vm.$set(_vm.form, "file", $$v)},expression:"form.file"}})],1),_vm._v(" "),_c('yt-btn',{staticClass:"m-t",on:{"click":_vm.submit}},[_vm._v("提交")])],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var emergency_instructionRecordAdd = (esExports);
// CONCATENATED MODULE: ./src/common/anjian/emergency/instructionRecordAdd.vue
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  instructionRecordAdd,
  emergency_instructionRecordAdd,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var anjian_emergency_instructionRecordAdd = __webpack_exports__["default"] = (Component.exports);


/***/ })

});